package beans;

import java.util.Calendar;

public class Esemeny {
	
	private Calendar written;
	private long modositoId;
	private String modositoNev;
	private String esemeny;
	
	public Calendar getWritten() {
		return written;
	}
	public void setWritten(Calendar written) {
		this.written = written;
	}
	public long getModositoId() {
		return modositoId;
	}
	public void setModositoId(long modositoId) {
		this.modositoId = modositoId;
	}
	public String getModositoNev() {
		return modositoNev;
	}
	public void setModositoNev(String modositoNev) {
		this.modositoNev = modositoNev;
	}
	public String getEsemeny() {
		return esemeny;
	}
	public void setEsemeny(String esemeny) {
		this.esemeny = esemeny;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((esemeny == null) ? 0 : esemeny.hashCode());
		result = prime * result + (int) (modositoId ^ (modositoId >>> 32));
		result = prime * result
				+ ((modositoNev == null) ? 0 : modositoNev.hashCode());
		result = prime * result + ((written == null) ? 0 : written.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Esemeny other = (Esemeny) obj;
		if (esemeny == null) {
			if (other.esemeny != null)
				return false;
		} else if (!esemeny.equals(other.esemeny))
			return false;
		if (modositoId != other.modositoId)
			return false;
		if (modositoNev == null) {
			if (other.modositoNev != null)
				return false;
		} else if (!modositoNev.equals(other.modositoNev))
			return false;
		if (written == null) {
			if (other.written != null)
				return false;
		} else if (!written.equals(other.written))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Esemeny [written=" + written + ", modositoId=" + modositoId
				+ ", modositoNev=" + modositoNev + ", esemeny=" + esemeny + "]";
	}
	

	
	
}
